<template>
  <footer class="footer">
    <div class="footer-container">
      <div class="footer-content">
        <div class="footer-logo">
          <h2>电脑DIY装机平台</h2>
          <p>专业的电脑配件选择与兼容性检测平台</p>
        </div>
        
        <div class="footer-links">
          <div class="footer-link-group">
            <h3>快速链接</h3>
            <ul>
              <li><router-link to="/">首页</router-link></li>
              <li><router-link to="/components">配件库</router-link></li>
              <li><router-link to="/builder">装机配置</router-link></li>
              <li><router-link to="/recommendations">推荐方案</router-link></li>
            </ul>
          </div>
          
          <div class="footer-link-group">
            <h3>帮助中心</h3>
            <ul>
              <li>常见问题</li>
              <li>装机教程</li>
              <li>联系我们</li>
              <li>隐私政策</li>
            </ul>
          </div>
          
          <div class="footer-link-group">
            <h3>关注我们</h3>
            <ul>
              <li>微信公众号</li>
              <li>微博</li>
              <li>B站</li>
              <li>抖音</li>
            </ul>
          </div>
        </div>
      </div>
      
      <div class="footer-bottom">
        <p>&copy; {{ new Date().getFullYear() }} 电脑DIY装机平台. 保留所有权利.</p>
      </div>
    </div>
  </footer>
</template>

<script setup lang="ts"></script>

<style scoped>
.footer {
  background-color: #1a1a1a;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h2 {
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  color: #00ccff;
}

.footer-logo p {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-link-group h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: white;
}

.footer-link-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-group li {
  margin-bottom: 0.5rem;
}

.footer-link-group a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link-group a:hover {
  color: #00ccff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

.footer-bottom p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links {
    justify-content: center;
    width: 100%;
  }
  
  .footer-link-group {
    flex: 1;
    min-width: 150px;
  }
}
</style>